package com.gpframework.module.purchase.service;

import com.gpframework.module.purchase.domain.GpProcureScheduling;
import com.gpframework.module.purchase.domain.vo.GpProcureSchedulingVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;
/**
 * @ClassName GpProcureScheduling
 * @Author gpframework
 * @Date 2023-12-22
 * @Version 1.0.0
 * @Description 采购排单Service接口
 */
public interface IGpProcureSchedulingService extends IService<GpProcureScheduling> {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2023-12-22
     * @Param [lqw]
     * @Return List<GpProcureSchedulingVo>
     */
    List<GpProcureSchedulingVo> listVo(QueryWrapper<GpProcureScheduling> lqw);

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2023-12-22
     * @Param [id]
     * @Return GpProcureSchedulingVo
     */
    GpProcureSchedulingVo getVoById(Long id);

    /**
     * 生成采购排单表
     * @param ids
     * @param createBy
     * @return
     */
    boolean createProcureScheduling(List<Long> ids, String createBy);

    boolean copy(Long id, Integer copyNum);
}
